package com.itheima.day00.test1;

import java.util.ArrayList;

public class MyArrayList<E> {
    private int size;
    private int index;
    private E[] elementData;

    public MyArrayList() {
        this.size = 0;
        this.index = -1;
    }

    private MyArrayList(int size) {
        this.size = size;
    }

    // void add(E e);将指定的元素添加到此列表的尾部。+8分
    public boolean add(E e) {
        return true;
    }


    // 数组扩容
    private void dilatation(int size, E e) {

    }

}
